package cn.ekuma.security.bean;

import java.util.List;

public interface I_GroupPermission {
	 public static final int GROUP_ONE=0xFF000000;//255-255-255-255
	 public static final int GROUP_TWO=0xFFFF0000;
	 public static final int GROUP_THREE=0xFFFFFF00;
	    
	 public static final int GROUP_TWO_FILTER=0x00FF0000;
	 public static final int GROUP_THREE_FILTER=0x0000FF00;
	 public static final int GROUP_FORE_FILTER=0x000000FF;
	 
	
	 void addChildPermission(I_GroupPermission p);
	 
	 I_GroupPermission getParent();
	 
	 List<I_GroupPermission> getChilds();
	 
	 int getLevel();
	 
	 I_GroupPermission  getChildById(int id);
	 
	 I_Permission getPermission();

	void setPermission(I_Permission p);
 
}
